package com.qy139.auth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qy139.entity.TabUser;
import com.qy139.entity.UserLeave;
import com.qy139.auth.mapper.UserLeaveMapper;
import com.qy139.auth.service.IUserLeaveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuhaochen
 * @since 2021-12-11
 */
@Service
public class UserLeaveServiceImpl extends ServiceImpl<UserLeaveMapper, UserLeave> implements IUserLeaveService {

    @Resource
    private UserLeaveMapper userLeaveMapper;
    @Override
    public IPage<UserLeave> selectAllLeave(Page<UserLeave> page, TabUser user) {
        return userLeaveMapper.selectAllLeave(page,user);
    }
}
